<template>
	<view>
		<u-select v-model="show" mode="mutil-column-auto" :list="list" @confirm="confirm" label-name="text" value-name="text"></u-select>
	</view>
</template>

<script>
	import {
	  getAddress
	} from '../../../haoduogeni/common/api/send';
	export default {
		data() {
			return {
				show: false,
				list: [],
			}
		},
		created() {
			this.getList();
		},
		methods: {
			getList(){
				getAddress().then(res =>{
					if(res.errno == 0){
						this.list = res.data;
					}
				})
			},
			open() {
				this.show = true;
			},
			confirm(e){
				console.log(e,'confirm')
				this.$emit('confirm',e[0].value+','+e[1].value)
			}
		}
	}
</script>

<style>

</style>